package com.appkubes.mall.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 用户额度情况
 * @author Rongjie
 */
@Data
@TableName("fintech_credit")
@KeySequence(value = "fintech_credit_SEQ")
@ApiModel(value = "FintechCredit对象")
public class FintechCredit implements Serializable{

       private String appKey;

       @TableId(value = "user_key", type = IdType.UUID)
       @ApiModelProperty(value = "用户id")
       private String userKey;

       @ApiModelProperty(value = "授信额度 单位为分（可人工调整）", example = "1")
       private Long creditAmount;

       @ApiModelProperty(value = "已使用额度  单位为分", example = "1")
       private Long freezeAmount;

       @ApiModelProperty(value = "冻结额度", example = "1")
       private Long forzenAmount;

       @ApiModelProperty(value = "风控额度, 单位为分", example = "1")
       private Long riskAmount;

       @ApiModelProperty(value = "0申请中 1审批中 2审批拒绝", example = "1")
       private Integer creditStatus;

       @ApiModelProperty(value = "风控审批意见")
       private String approval;

       @ApiModelProperty(value = "创建者")
       private String creator;

       @ApiModelProperty(value = "创建时间")
       private Date createTime;

       @ApiModelProperty(value = "更新者")
       private String updater;

       @ApiModelProperty(value = "更新时间")
       private Date updateTime;

       @ApiModelProperty(value = "版本号")
       @Version
       private String version;

       @ApiModelProperty(value = "审核时间")
       private Date handlerTime;

       private Integer hasBeenRejected;

}
